{extend name="common/base"}
{block name="data_type"}widgets{/block}

            {block name="content"}
<link rel="stylesheet" href="__STATIC__kindeditor/themes/default/default.css" />
<script charset="utf-8" src="__STATIC__kindeditor/kindeditor-all-min.js"></script>
<script charset="utf-8" src="__STATIC__kindeditor/lang/zh-CN.js"></script>
<script>
    var editor;
    KindEditor.ready(function(K) {
        editor = K.create('textarea[name="detail"]', {
            allowFileManager : true,
            items : [
                  'undo', 'redo', '|', 'preview', 'print', 'template', 'code', 'cut', 'copy', 'paste',
                'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
                'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
                'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/',
                'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
                'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image', 'multiimage',
                'flash', 'media', 'insertfile', 'table', 'hr', 'emoticons', 'baidumap', 'pagebreak',
                'anchor', 'link', 'unlink', '|', 'about'
            ],
        });
    });
</script>
            <div class="row-content am-cf">


                <div class="row">

                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                        <div class="widget am-cf">
                            <div class="widget-head am-cf">
                                <div class="widget-title am-fl">产品管理</div>
                                <div class="widget-function am-fr">
                                    <a href="javascript:;" class="am-icon-cog"></a>
                                </div>
                            </div>
                            <div class="widget-body am-fr">

                                <form class="am-form tpl-form-line-form" action="{:url('store')}" method="post" enctype="multipart/form-data">


                                    <div class="am-form-group">
                                        <label for="url" class="am-u-sm-3 am-form-label">产品名称 <span class="tpl-form-line-small-title">name</span></label>
                                        <div class="am-u-sm-9">
                                            <input type="text" class="am-form-field tpl-form-no-bg" name="name" id="name" placeholder="请输入产品名称">
                                            <small>请输入产品名称</small>
                                        </div>
                                    </div>
                                    <div class="am-form-group">
                                        <label for="price" class="am-u-sm-3 am-form-label">产品价格 <span class="tpl-form-line-small-title">price</span></label>
                                        <div class="am-u-sm-9">
                                            <input type="text" class="am-form-field tpl-form-no-bg" name="price" id="price" placeholder="请输入产品价格">
                                            <small>请输入产品价格</small>
                                        </div>
                                    </div>
                                    <div class="am-form-group">
                                        <label for="commission" class="am-u-sm-3 am-form-label">产品佣金 <span class="tpl-form-line-small-title">commission</span></label>
                                        <div class="am-u-sm-9">
                                            <input type="text" class="am-form-field tpl-form-no-bg" name="commission" id="commission" placeholder="请输入产品佣金">
                                            <small>请输入产品佣金</small>
                                        </div>
                                    </div>

                                    <div class="am-form-group">
                                        <label for="bounds" class="am-u-sm-3 am-form-label">产品积分 <span class="tpl-form-line-small-title">bounds</span></label>
                                        <div class="am-u-sm-9">
                                            <input type="text" class="am-form-field tpl-form-no-bg" name="bounds" id="bounds" placeholder="请输入产品积分">
                                            <small>请输入产品积分</small>
                                        </div>
                                    </div>


                                    <div class="am-form-group">
                                        <label for="src" class="am-u-sm-3 am-form-label">产品 <span class="tpl-form-line-small-title">Images</span></label>
                                        <div class="am-u-sm-9">
                                            <div class="am-form-group am-form-file">
                                                <div class="tpl-form-file-img">
                                                    <img src="__STATIC__assets/img/a5.png" alt="">
                                                </div>
                                                <button type="button" class="am-btn am-btn-danger am-btn-sm">
    <i class="am-icon-cloud-upload"></i> 添加产品</button>
                                                <input id="doc-form-file" type="file" name="cover_img" id="cover_img">
                                            </div>

                                        </div>
                                    </div>

                             <div class="am-form-group">
                                    <label for="detail" class="am-u-sm-3 am-form-label">产品详情 <span class="tpl-form-line-small-title">detail</span></label>
                                    <div class="am-u-sm-9">
                                        <textarea name="detail" id="detail"></textarea>
                                    </div>
                            </div>

                                    <div class="am-form-group">
                                        <div class="am-u-sm-9 am-u-sm-push-3">
                                            <button type="submit" class="am-btn am-btn-primary tpl-btn-bg-color-success ">提交</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>



            </div>
            {/block}